﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WAVEZ
{
    class Menu : SceneBase 
    {
        //Texture2D cenario,cenario2;
        Texture2D cenario;
        Texture2D fundo, title, creditos, newGame;

        
        public override void start()
        {




            cenario = Game1.Self.Content.Load<Texture2D>("fundo_menu");
            //cenario2 = Game1.Self.Content.Load<Texture2D>("");
            creditos = Game1.Self.Content.Load<Texture2D>("creditos");
            title = Game1.Self.Content.Load<Texture2D>("titulo_menu");
            newGame = Game1.Self.Content.Load<Texture2D>("newGame");
            


            
            



        }


        public override void draw(SpriteBatch spriteBatch)
        {

            
            spriteBatch.Draw(cenario, Vector2.Zero, Color.White);
            //spriteBatch.Draw(cenario2,Vector2.Zero,Color.White);
            spriteBatch.Draw(creditos, Vector2.Zero, Color.White);
            spriteBatch.Draw(newGame, Vector2.Zero, Color.White);
            
            spriteBatch.Draw(title, Vector2.Zero, Color.White);
            //fundo3.Draw(spriteBatch);

        }


        public override void update()
        {

            if (Keyboard.GetState().IsKeyDown(Keys.Enter))
            {

                SceneManager.setScene(new Nivel_Teste());

            }



        }


        public override void terminate()
        {

        }
    }
}
